package com.example.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

//实体类——数字样本
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Sample {

    //样本ID
    private Integer sampleID;

    //0：数字样，1：备选数字样
    private boolean isCandidate;

    private String msgId;

    //外键，品牌ID
    private Integer brandID;

    //品牌名称
    private String brandName;

    //外键，缺陷分类ID
    private Integer defectID;
    private String defectType;

    //缺陷名称
    private String defectName;

    //外键，设备编号
    private String machineID;

    //外键，每个数字样都对应了一个设备源数字样ID
    private Integer sampleMachineID;

    //如果为备选数字样，该字段为推荐指数
    private double NPS;

    //缺陷等级
    //private Integer defectGrade;
    private String defectGrade;

    //保存到后台的文件名
    private String fileName;


    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date postTime;

    //创建时间
    private LocalDateTime createTime;

    //修改时间
    private LocalDateTime updateTime;
}
